package com.education.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

@Getter
@Setter
@TableName("topic_info_detail")
@Builder
public class TopicInfoDetailEntity {
    @TableId(type = IdType.AUTO)
    private Integer id;

    @TableField("topic_id")
    private Integer topicId;

    @TableField("parent_id")
    private Integer parentId;

    @TableField("parent_type")
    private Integer parentType;

    @TableField("user_id")
    private Integer userId;

    private String toUserName;

    @TableField("role_type")
    private Integer roleType;

    @TableField("content")
    private String content;

    private Integer status;
    private Integer tenantId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    @TableField("create_date")
    private LocalDateTime createDate;
}
